class Constants {
    ORDER_STATUS_CREATED = 0;  //已创建
    ORDER_STATUS_USER_PAY = 1;  //待用户支付
    ORDER_STATUS_MERCHANT_PAY = 2;  //待商户支付
    ORDER_STATUS_MERCHANT_VERIFY = 3;  //待商户审核
    ORDER_STATUS_VERIFY = 4;  //待审核
    ORDER_STATUS_DELIVERY = 5;  //待发货
    ORDER_STATUS_SENT = 6;  //待收货
    ORDER_STATUS_COMPLELTED = 9;  //已完成
    ORDER_STATUS_FAILED = 10;  //已失败
    ORDER_STATUS_REFUND = 20;  //已退货
    ORDER_STATUS_EXCEPTION = 80;  //异常
    ORDER_STATUS_CLOSED = 99;  //已关闭

    ORDER_STATUS_MAP = {
        0: '已创建',
        1: '待用户支付',
        2: '待商户支付',
        3: '待商户审核',
        4: '待审核',
        5: '待发货',
        6: '待收货',
        9: '已完成',
        10: '已失败',
        20: '已退货',
        80: '异常',
        99: '已关闭'
    };

    GOODS_TYPE_REALITY = 1;
    GOODS_TYPE_RECHARGE = 2;
    GOODS_TYPE_VIRTUAL = 3;

    GOODS_TYPE_MAP = {
        1: '实物',
        2: '直充',
        3: '卡券'
    };

    GOODS_CATEGORY_PHONE_FARE = 4;
    GOODS_CATEGORY_FLOW = 5;
    GOODS_CATEGORY_COUPON = 20;

    GOODS_CATEGORY_MAP = {
        4: '话费',
        5: '流量',
        20: '优惠券'
    };

    PAY_TYPE_WEIXIN = 'weixin';
    PAY_TYPE_ALIPAY = 'alipay';
    PAY_TYPE_IAPPPAY = 'iapppay';

    PAY_TYPE_MAP = {
        'weixin': '微信',
        'alipay': '支付宝',
        'iapppay': '爱贝'
    };

    GOODS_EXAMINE_NOMARL = 0;  //待审核
    GOODS_EXAMINE_PASSED = 1;  //审核通过
    GOODS_EXAMINE_REJECT = 2;  //待审拒绝

    GOODS_EXAMINE_MAP = {
        0: '待审核',
        1: '通过',
        2: '拒绝'
    };

    AFTER_SALE_NOMARL = 0; //待处理
    AFTER_SALE_SEND = 1; //待用户寄回
    AFTER_SALE_PASSED = 2; //待商家收货
    AFTER_SALE_COMPLETE = 3; //售后成功
    AFTER_SALE_CLOSE = 4; //售后关闭

    AFTER_SALE_STATUS_MAP = {
        0: "待处理",
        1: "待用户寄回",
        2: "待商家收货",
        3: "售后成功",
        4: "售后关闭",
    };

    CUSTOM_GOODS_NO = false;
    CUSTOM_GOODS_YES = true;

    CUSTOM_GOODS_MAP = {
        false: "否",
        true: "是"
    };

    AFTER_TYPE_EXCHANGE_GOODS = 0; // 换货
    AFTER_TYPE_REFUND_GOODS = 1; // 退货并退款
    AFTER_TYPE_REFUND = 2; // 仅退款


    AFTER_TYPE_MAP = {
        0: "换货",
        1: "退货退款",
        2: "仅退款"
    };

    AFTER_TYPE_LIST = [0, 1, 2];

    AFTER_ORDER_DELIVERY_NO = 0; // 未发货
    AFTER_ORDER_DELIVERY_YES = 1; // 已发货

    AFTER_ORDER_DELIVERY_STATUS_MAP = {
        0: '未发货',
        1: '已发货',
    };

    EXPRESS_STATUS_ERROR = -1; // 单号或快递公司代码错误
    EXPRESS_STATUS_NO_DARA = 0; // 暂无轨迹
    EXPRESS_STATUS_WAY = 2; // 在途中
    EXPRESS_STATUS_RECEIVED = 3; // 签收
    EXPRESS_STATUS_PROBLEM = 4; // 问题件

    EXPRESS_STATUS_MAP = {
        "-1": "单号或快递公司代码错误",
        0: "暂无轨迹信息",
        2: "在途中",
        3: "已签收",
        4: "问题件"
    };

    REFUND_STATUS_MAP = {
        0: "否",
        1: "是"
    };

    ORDER_EXPORT_TYPE_ACCOUNT_STATEMENT = 0; // 对账单
    ORDER_EXPORT_TYPE_AFTERSALE_COMPLETE = 1; // 售后已完成

    ORDER_EXPORT_TYPE_MAP = {
        0: "对账单",
        1: "退货已完成"
    };

  TASK_START = 0; // 任务处理中
  TASK_COMPLETE = 1; // 任务完成
  TASK_EXCEPTION = 10; // 任务异常

  TASK_NOT_HAS_DOWNLOAD = 0; // 没有下载
  TASK_HAS_DOWNLOAD = 1; // 含有下载

  TASK_NOT_READ = 0; // 未查看
  TASK_IS_READED = 1; // 已查看
}

const c = new Constants();
export default c;